<template>
    <div>
        <div class="error-container p-t-20">
            <span>4</span>
            <span>
        <span class="screen-reader-text">0</span>
      </span>
            <span>4</span>
        </div>
        <router-link tag="div" class="text-center p-t-20" to="/">
            <button class="el-button">返回首页</button>
        </router-link>
    </div>
</template>

<style scoped>
    .text-center {
        font-family: "Montserrat", Helvetica, sans-serif;
        color: #92a4ad;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    button {
        -webkit-writing-mode: horizontal-tb !important;
        text-rendering: auto;
        color: buttontext;
        letter-spacing: normal;
        word-spacing: normal;
        text-transform: none;
        text-indent: 0px;
        text-shadow: none;
        text-align: center;
        cursor: default;
        font: 400 13.3333px Arial;
    }
    .el-button{
        display: inline-block;
        line-height: 1;
        white-space: nowrap;
        cursor: pointer;
        background: #FFFFFF;
        border: 1px solid #DCDFE6;
        border-color: #DCDFE6;
        -webkit-appearance: none;
        text-align: center;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        outline: none;
        margin: 0;
        -webkit-transition: .1s;
        transition: .1s;
        font-weight: 500;
        -moz-user-select: none;
        -webkit-user-select: none;
        -ms-user-select: none;
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 20px;
    }
    .error-container {
        text-align: center;
        font-size: 100px;
        font-family: "Catamaran", sans-serif;
        font-weight: 800;
    }
    .error-container > span {
        display: inline-block;
        line-height: 0.7;
        position: relative;
        color: #ffb485;
        padding: 0 10px;
    }
    .error-container > span {
        display: inline-block;
        position: relative;
        vertical-align: middle;
    }
    .error-container > span:nth-of-type(1) {
        color: #d1f2a5;
        animation: colordancing 4s infinite;
    }
    .error-container > span:nth-of-type(3) {
        color: #f56991;
        animation: colordancing2 4s infinite;
    }
    .error-container > span:nth-of-type(2) {
        width: 80px;
        height: 80px;
        border-radius: 999px;
    }
    .error-container > span:nth-of-type(2):before,
    .error-container > span:nth-of-type(2):after {
        border-radius: 0%;
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: inherit;
        height: inherit;
        border-radius: 999px;
        box-shadow: inset 30px 0 0 rgba(209, 242, 165, 0.4),
        inset 0 30px 0 rgba(239, 250, 180, 0.4),
        inset -30px 0 0 rgba(255, 196, 140, 0.4),
        inset 0 -30px 0 rgba(245, 105, 145, 0.4);
        animation: shadowsdancing 4s infinite;
    }
    .error-container > span:nth-of-type(2):before {
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        transform: rotate(45deg);
    }

    .screen-reader-text {
        position: absolute;
        top: -9999em;
        left: -9999em;
    }
    @keyframes shadowsdancing {
        0% {
            box-shadow: inset 30px 0 0 rgba(209, 242, 165, 0.4),
            inset 0 30px 0 rgba(239, 250, 180, 0.4),
            inset -30px 0 0 rgba(255, 196, 140, 0.4),
            inset 0 -30px 0 rgba(245, 105, 145, 0.4);
        }
        25% {
            box-shadow: inset 30px 0 0 rgba(245, 105, 145, 0.4),
            inset 0 30px 0 rgba(209, 242, 165, 0.4),
            inset -30px 0 0 rgba(239, 250, 180, 0.4),
            inset 0 -30px 0 rgba(255, 196, 140, 0.4);
        }
        50% {
            box-shadow: inset 30px 0 0 rgba(255, 196, 140, 0.4),
            inset 0 30px 0 rgba(245, 105, 145, 0.4),
            inset -30px 0 0 rgba(209, 242, 165, 0.4),
            inset 0 -30px 0 rgba(239, 250, 180, 0.4);
        }
        75% {
            box-shadow: inset 30px 0 0 rgba(239, 250, 180, 0.4),
            inset 0 30px 0 rgba(255, 196, 140, 0.4),
            inset -30px 0 0 rgba(245, 105, 145, 0.4),
            inset 0 -30px 0 rgba(209, 242, 165, 0.4);
        }
        100% {
            box-shadow: inset 30px 0 0 rgba(209, 242, 165, 0.4),
            inset 0 30px 0 rgba(239, 250, 180, 0.4),
            inset -30px 0 0 rgba(255, 196, 140, 0.4),
            inset 0 -30px 0 rgba(245, 105, 145, 0.4);
        }
    }
    @keyframes colordancing {
        0% {
            color: #d1f2a5;
        }
        25% {
            color: #f56991;
        }
        50% {
            color: #ffc48c;
        }
        75% {
            color: #effab4;
        }
        100% {
            color: #d1f2a5;
        }
    }
    @keyframes colordancing2 {
        0% {
            color: #ffc48c;
        }
        25% {
            color: #effab4;
        }
        50% {
            color: #d1f2a5;
        }
        75% {
            color: #f56991;
        }
        100% {
            color: #ffc48c;
        }
    }

    /* demo stuff */
    * {
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }
    body {
        background-color: #416475;
        margin-bottom: 50px;
    }
    html,
    button,
    input,
    select,
    textarea {
        font-family: "Montserrat", Helvetica, sans-serif;
        color: #92a4ad;
    }
    h1 {
        text-align: center;
        margin: 30px 15px;
    }
    .zoom-area {
        max-width: 490px;
        margin: 30px auto 30px;
        font-size: 19px;
        text-align: center;
    }
    .link-container {
        text-align: center;
    }
    a.more-link {
        text-transform: uppercase;
        font-size: 13px;
        background-color: #92a4ad;
        padding: 10px 15px;
        border-radius: 0;
        color: #416475;
        display: inline-block;
        margin-right: 5px;
        margin-bottom: 5px;
        line-height: 1.5;
        text-decoration: none;
        margin-top: 50px;
        letter-spacing: 1px;
    }
</style>
